package src;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Created by dell on 2017/7/26.
 */
public class DiamondTest {
    public static void main(String[] args) {
        List<String> list=new ArrayList<>();
        list.add("我爱你");
        list.add("我恨你kk");
        list.forEach(ele-> System.out.println(ele.toString()));
        Map<String,List<String>> schools=new HashMap<>();
        List<String> school=new ArrayList<>();
        school.add("大学");
        school.add("小学");
        schools.put("大哥",school);
        schools.forEach((key,value)-> System.out.println(key+"-->"+value));
    }
}
